import { ipcMain } from 'electron';
import { makeDir, makeFile } from '../client/file';

export default function () {
  ipcMain.on('mkdir', (e: any, path, name) => {
    makeDir(path, name);
  });

  ipcMain.on('mkfile', (e: any, path, name) => {
    makeFile(path, name);
  });
}
